package com.repository;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dto.MobileStationMonitorDTO;
import com.dto.MobileStationPlusDTO;
import com.model.MobileStation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 流动站信息表 Mapper 接口
 * </p>
 *
 * @author wangjiang
 * @since 2020-11-03
 */
@Repository
public interface MobileStationMapper extends BaseMapper<MobileStation> {

    Page<MobileStationPlusDTO> pagePlus(Page<MobileStation> page, @Param("code") String code, @Param("name") String name, @Param("ntripState") String ntripState);




    /**
     * 查询 公司集合
     * @param stateStatus
     * @param search
     * @return
     */
    List<MobileStationMonitorDTO> getCompanys(@Param("status") String stateStatus, @Param("search") String search);

    /**
     * 查询设备集合
     * @param stateStatus
     * @param search
     * @return
     */
    List<MobileStationMonitorDTO.MobileDevice> getMobileStations(@Param("status") String stateStatus, @Param("search") String search);
}
